<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-operation-edit" th:object="${operation}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
         
         	<div class="form-group">
				<label class="col-sm-3 control-label">病人姓名：</label>
				<div class="col-sm-8">
					<select id="personalId" name="personalId" class="form-control" ><!--  th:disabled="${post.status == '1'}"判断 -->
						<option th:each="post:${posts}" th:value="${post.id}" th:text="${post.patientName}" th:selected="${post.flag}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">护士名称：</label>
				<div class="col-sm-8">
					<select id="personalHushiid" name="personalHushiid" class="form-control"><!--  th:disabled="${post.status == '1'}" 条件判断-->
						<option th:each="post:${hushi}" th:value="${post.userId}" th:text="${post.userName}" th:selected="${post.flag}"></option>
					</select>
					
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">医生名称：</label>
				<div class="col-sm-8">
					<select id="personalYishengid" name="personalYishengid" class="form-control"><!--  th:disabled="${post.status == '1'}" 条件判断-->
						<option th:each="post:${yisheng}" th:value="${post.userId}" th:text="${post.userName}" th:selected="${post.flag}"></option>
					</select>
					
				</div>
			</div>
         
            <div class="form-group">	
                <label class="col-sm-3 control-label">手术名称：</label>
                <div class="col-sm-8">
                    <input id="personalShoushuname" name="personalShoushuname" th:field="*{personalShoushuname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">手术时长：</label>
                <div class="col-sm-8">
                    <input id="personalShoushusc" name="personalShoushusc" th:field="*{personalShoushusc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">术后状态：</label>
                <div class="col-sm-8">
                    <input id="perosnalBhzt" name="perosnalBhzt" th:field="*{perosnalBhzt}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/operation"
		$("#form-operation-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-operation-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
